import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: "about" */ '../views/about/About.vue')
  },
  {
    path: '/category',
    name: 'Category',
    component: () => import(/* webpackChunkName: "about" */ '../views/category/Category.vue')
  },
  {
    path: '/reading',
    name: 'Reading',
    component: () => import(/* webpackChunkName: "about" */ '../views/reading/reading.vue')
  },
  {
    path: '/timeline',
    name: 'Timeline',
    component: () => import(/* webpackChunkName: "about" */ '../views/timeline/timeline.vue')
  },
  {
    path: '/categoryList/:typeId',
    name: 'CategoryList',
    component: () => import(/* webpackChunkName: "about" */ '../views/categoryList/CategoryList.vue')
  },
  {
    path: '/work/:id',
    name: 'Work',
    component: () => import(/* webpackChunkName: "about" */ '../views/work/work.vue')
  },
  {
    path: '/works',
    name: 'Works',
    component: () => import(/* webpackChunkName: "about" */ '../views/works/works.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
